<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
	<link rel="stylesheet" th:href="@{/webjars/layui/css/layui.css}">
</head>
<body>
	<form class="layui-form" id="updateForm" th:action="@{/customer}" th:object="${customer}">
		<div class="layui-form-item">
			<label class="layui-form-label">真实姓名</label>
			<div class="layui-input-block">
				<input type="hidden" name="customerId" th:value="*{customerId}">
				<input type="text" name="realName" placeholder="请输入姓名" th:value="*{realName}"
					   autocomplete="off" class="layui-input" lay-verify="required" maxlength="50">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">性别</label>

			<div class="layui-input-block">
				<input   type="radio" name="sex" value="男" title="男" th:checked="*{sex=='男'}">
				<input  type="radio" name="sex" value="女" title="女" th:checked="*{sex=='女'}">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">年龄</label>
			<div class="layui-input-block">
				<input type="text" name="age" placeholder="请输入年龄" autocomplete="off" th:value="*{age}"
					   class="layui-input" lay-verify="number" maxlength="3">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">邮箱</label>
			<div class="layui-input-block">
				<input type="text" name="email" placeholder="请输入邮箱" th:value="*{email}"
					   autocomplete="off" class="layui-input" lay-verify="email" maxlength="100">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">手机号码</label>
			<div class="layui-input-block">
				<input type="text" name="phone" placeholder="手机号码" th:value="*{phone}"
					   autocomplete="off" class="layui-input" lay-verify="phone" maxlength="11">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label">地址</label>
			<div class="layui-input-block">
				<input type="text" name="address" placeholder="地址" th:value="*{address}"
					   autocomplete="off" class="layui-input" maxlength="200">
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit lay-filter="updateSubmit">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</body>
</html>